package cn.kk.Blog.core.service;

import java.util.List;

public interface IBaseService<T> {

    public boolean save(T t) throws Exception;

    public boolean update(T t) throws Exception;

    public boolean remove(Integer id) throws Exception;

    public T byId(Integer id) throws Exception;

    public List<T> list() throws Exception;

    public boolean batchRemove(List<Integer> ids) throws Exception;
}
